//
//  DownloadDetailViewController.h
//  UADE-Mobile
//
//  Created by Marcos Damian Pianelli on 10/6/11.
//  Copyright (c) 2011 DG. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DownloadDetailViewController : UIViewController <NSURLConnectionDownloadDelegate, UIDocumentInteractionControllerDelegate, UIWebViewDelegate,NSURLConnectionDataDelegate>{ 
    UILabel * fileTitle;
    UILabel * fileSize;
    UIView * flipView;

    UIBarButtonItem * openInButton;
    UIProgressView * progressBar;
    NSDictionary * fileInfo;
    NSString * urlRequest;
    NSURLConnection * connection;
    UIWebView * webView;
    NSMutableDictionary * filepathDic;
    NSURL * filePathURL;
    NSMutableData * receivedData;
    NSString * suggestedFileName;
    
    
    UIView * navWebView;
    UIView * navFileView;

}
@property (nonatomic, strong) IBOutlet UILabel * fileTitle;
@property (nonatomic, strong) IBOutlet UILabel * fileSize;
@property (nonatomic, strong) IBOutlet UIView  * flipView;

@property (nonatomic, strong) IBOutlet UIView * navWebView;
@property (nonatomic, strong) IBOutlet UIView * navFileView;


@property (nonatomic, strong) IBOutlet UIProgressView * progressBar;
@property (nonatomic, strong) IBOutlet UIBarButtonItem * openInButton;
@property (nonatomic, strong) IBOutlet   UIWebView * webView;

@property (nonatomic, strong) NSMutableData * receivedData;
@property (nonatomic, strong) NSDictionary * fileInfo;
@property (nonatomic, strong) NSURL * filePathURL;
@property (nonatomic, strong) NSString * urlRequest;
@property (nonatomic, strong) NSURLConnection * connection;
@property (nonatomic, strong) NSMutableDictionary * filepathDic;
@property (nonatomic, strong) NSString * suggestedFileName;



-(IBAction)loadDocumentInteraction:(id)sender;
-(IBAction)flipViews;

@end
